package collection;

import java.util.ArrayList;
import java.util.Collection;

public class K {
	public static void main(String[] args) {
		String str="hello";
		int a=1;
		point p=new point(1,2);
		Collection c=new ArrayList();
		c.add(p);
		dosome(a,str,p,c);
		System.out.println("str:"+str);
		System.out.println("a:"+a);
		System.out.println("p:"+p);
		System.out.println("c:"+c);
	}
public static void dosome(int a,String str,point p,Collection c) {
	str =str+"wold";
	a=a+1;
	p.setX(a);
	c=new ArrayList();
	p=new point(5,6);
	c.add(p);
	c=new ArrayList();
	c.add(new point(7,8));
	c.clear();
	c.add(p);
}
}